﻿using BCCommon.Extensions;
using BCCommon.TMS.Driver;
using System;

namespace BCDto.TMS.LearnTrain.DriverLearningTrainRecord
{
    public class DriverLearningTrainRecordViewDto : DriverLearningTrainRecordDto
    {
        /// <summary>
        /// 司机姓名
        /// </summary>
        public string DriverName { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string VehicleNo { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 培训点名称
        /// </summary>
        public string TrainingSiteName { get; set; }
        /// <summary>
        /// 培训点地址
        /// </summary>
        public string TrainingSiteAddress { get; set; }
        /// <summary>
        /// 培训期数
        /// </summary>
        public string TrainingPeriods { get; set; }
        /// <summary>
        /// 培训开始日期
        /// </summary>
        public DateTime TrainingStartDate { get; set; }
        /// <summary>
        /// 培训结束日期
        /// </summary>
        public DateTime TrainingEndDate { get; set; }
        /// <summary>
        /// 培训讲师
        /// </summary>
        public string TrainingTeacher { get; set; }
        /// <summary>
        /// 司机角色
        /// </summary>
        public DriverRoleType Role { get; set; }
        /// <summary>
        /// 司机角色
        /// </summary>
        public string RoleStr { get { return Role.GetDescriptionString(); } }
        /// <summary>
        /// 是否培训通过
        /// </summary>
        public  bool IsLearnTrainPassed { get; set; }
        /// <summary>
        /// 培训通过时间
        /// </summary>
        public DateTime? LearnTrainPassedTime { get; set; }
    }
}
